package com.easybuilder.common.base.service;

import com.easybuilder.common.base.entity.DynamicEntity;
import com.easybuilder.common.base.entity.SearchEntity;
import lombok.Data;

import java.util.List;

/**
 * @author ZXS
 * @version 1.0
 * @description 分页查询类
 * @date 2021-5-26 22:49
 */
public interface PageQuery {

    PageResult getPage(SearchEntity searchEntity);

    @Data
    static class PageResult {
        private int pageNum;
        private int pageSize;
        private int total;
        private List<DynamicEntity> data;
    }
}
